//
//  EmojiCollectionViewCell.m
//  Findif
//
//  Created by Mac on 2019/4/8.
//  Copyright © 2019年 Cicel Chen. All rights reserved.
//

#import "EmojiCollectionViewCell.h"

@implementation EmojiCollectionViewCell

-(instancetype)initWithFrame:(CGRect)frame{
    
    self = [super initWithFrame:frame];
    if (self) {
        //设置控件
        [self setupUI];
    }
    
    return self;
}


- (void)setupUI{
    
    UILabel * emojiLabel = [UILabel new];
    
    emojiLabel.font = [UIFont systemFontOfSize:30 * SCREENH6];
    emojiLabel.textAlignment = NSTextAlignmentCenter;
    
    self.emojiLabel = emojiLabel;
    
    [self.contentView addSubview:self.emojiLabel];
}

- (void)layoutSubviews{
    
    [self.emojiLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.mas_equalTo(self.contentView);
        make.centerX.mas_equalTo(self.contentView);
    }];
}

@end
